<?php

error_reporting(E_ALL);
require_once("Controllers/baseController.php");
require_once("Views/PageView.php");
require_once("Models/RestUtils.php");
require_once("Models/Array2Xml.php");
require_once("Models/ProducerDAL.php");
require_once ("Models/ProducerModel.php");
require_once("Views/Validate.php");
require_once("Views/basicView.php");
require_once("Models/producer.php");

include("Views/Axial_Command.php");
include("Views/Axial_UrlInterpreter.php");
include("Views/Axial_CommandDispatcher.php");

$urlInterpreter = new Axial_UrlInterpreter();
$command = $urlInterpreter->GetCommand();
$commandDispatcher = new Axial_CommandDispatcher($command);
$body = $commandDispatcher->Dispatch();

echo $body;
//$pageView = new PageView();
//echo $pageView->GetHTMLPage("Webbteknik II lab II", $body);
